<?php
/**
 * Created by PhpStorm.
 * User: sykbxc
 * Date: 2019/2/11
 * Time: 15:40
 */

namespace App\Http\Controllers;


class Director
{
    public function build(BuilderInterface $builder): Vehicle
    {
        $builder->createVehicle();
        $builder->addDoors();
        $builder->addEngine();
        $builder->addWheel();

        return $builder->getVehicle();
    }
}